import { getSyptAnswer, getSyptAnswerList } from "@/services/modules/AnswerDetailManage";
import { IItem, IQueryItem, ISyptAnswerList } from "@/utils/AnswerDetailManage";



class AnswerDetailManage {
    //问题回显
    SyptAnswer: IItem = {} as IItem
    async getSyptAnswer(params: any) {
        let res = await getSyptAnswer(params)
        this.SyptAnswer = res.data
    }
    //问答评论列表
    SyptAnswerList: ISyptAnswerList[] = []
    SyptAnswerListLen:number=0
    async getSyptAnswerList(params: IQueryItem) {
        let res = await getSyptAnswerList(params)
        console.log(res)
        if (res.code == 200) {
            this.SyptAnswerList = res.rows
            this.SyptAnswerListLen=res.total
        }

    }
}
export default new AnswerDetailManage